<?php echo $this->fetch('header.html'); ?>
<ul class="nav nav-tabs">
<li class="active"><a href="<?php echo $this->_var['appadmin']; ?>?m=model"><?php echo $this->_var['lang']['model_admin']; ?></a></li>
<li><a href="<?php echo $this->_var['appadmin']; ?>?m=model&a=add"><?php echo $this->_var['lang']['model_add']; ?></a></li>
</ul>


<div class="rbox">
<table width="100%" border="0" class="table table-bordered">
  <tr>
    <td width="5%" align="center">ID</td>
    <td width="14%" align="center">名称</td>
    <td width="15%" align="center">表名</td>
 	<td width="9%" align="center">状态</td>
   
    <td width="57%" align="center">操作</td>
  </tr>
  <?php $_from = $this->_var['data']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
  <tr>
    <td align="center"><?php echo $this->_var['c']['id']; ?></td>
    <td align="center"><?php echo $this->_var['c']['title']; ?></td>
    <td align="center"><?php echo $this->_var['c']['tablename']; ?></td>
 	<td align="center"> <?php if ($this->_var['c']['status'] == 1): ?>
           <img src="/static/images/yes.gif" class="ajax_no"  rurl="<?php echo $this->_var['appadmin']; ?>?m=model&a=status&id=<?php echo $this->_var['c']['id']; ?>&status=1" url="<?php echo $this->_var['appadmin']; ?>?m=model&a=status&id=<?php echo $this->_var['c']['id']; ?>&status=10" />
           <?php else: ?>
           <img src="/static/images/no.gif"  class="ajax_yes" url="<?php echo $this->_var['appadmin']; ?>?m=model&a=status&id=<?php echo $this->_var['c']['id']; ?>&status=1" rurl="<?php echo $this->_var['appadmin']; ?>?m=model&a=status&id=<?php echo $this->_var['c']['id']; ?>&status=10" />  
          <?php endif; ?></td>
    <td align="center">
    <?php if ($this->_var['c']['module']): ?>模块 
    <?php else: ?><a href="<?php echo $this->_var['appadmin']; ?>?m=model&a=add&id=<?php echo $this->_var['c']['id']; ?>"><?php echo $this->_var['lang']['edit']; ?></a> 
   <?php if ($this->_var['c']['id'] > 20): ?><a href="javascript:;" class="del" url="<?php echo $this->_var['appadmin']; ?>?m=model&a=delete&id=<?php echo $this->_var['c']['id']; ?>"><?php echo $this->_var['lang']['delete']; ?></a><?php endif; ?><?php endif; ?> </td>
  </tr>
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
  
</table>


</div>
<?php echo $this->fetch('footer.html'); ?>